package com.tongfusoft.web.core.service;

import java.util.List;
import java.util.Map;

import com.tongfusoft.web.core.action.ExportDefine;
import com.tongfusoft.web.core.data.Page;

public interface IListService {
	
	/**
	 * 查询操作符
	 */
	public final static String  SEARCHOPER = "searchOper"; 
	
	/**
	 * 查询关键字
	 */
	public final static String SEARCHSTRING = "searchString";
	
	/**
	 * 查询字段
	 */
	public final static String SEARCHFIELD = "searchField";
	
	/**
	 * 组合查询参数名
	 */
	public final static String FILTERS = "filters";
	
	/**
	 * SQL片段
	 */
	public final static String  SQLFRAGMENT = "SqlFragment";
	
	/**
	 * 获取记录总数
	 * @param map
	 * @return
	 */
	public int getTotalCount(Map map);

	/**
	 * 获取单页记录
	 * @param map
	 * @param page
	 * @return
	 */
	public Page findOnPage(Map map, Page page);
	
	/**
	 * 获取导出的格式
	 * @return
	 */
	public List<ExportDefine> getExportTitle(Map map);

}
